Justification Based on Program Transformation
نویسندگان
چکیده
Justification is to give evidence, in terms of a proof, for the truth value of the result generated by query evaluation of a logic program. In an earlier work we presented algorithms for justifying logic programs. It was based on using tabling for evaluating the program and post-processing the memo tables created during evaluation. Justification built in this fashion does not compromise the performance of query evaluation in the sense that it is completely decoupled from the query evaluation process and is done only after evaluation is completed. However, this algorithm is based on metainterpreting the memo tables and clauses of the program. This is a major source of inefficiency. In this paper we present a new justification scheme based on program transformation. Justification of a true literal is generated during query evaluation of the transformed program. To justify a false literal, we generate the dual definition for each predicate defined in the program. A new program is then obtained based on those dual predicates and the original program. Query evaluation on this new program yields justification for the false literal. We provide experimental evidence to show that justification using program transformation outperforms the previous techniques in both efficiency and scalability.
منابع مشابه
Online Justification for Tabled Logic Programs
Justification is the process of constructing evidence, in terms of proof, for the truth or falsity of an answer derived by tabled evaluation. The evidence is most easily constructed by post-processing the memo tables created during query evaluation. In this paper we introduce online justification, based on program transformation, to efficiently construct the evidence during query evaluation, wh...
متن کاملProgram and proof optimizations with type systems
We demonstrate a method for describing data-flow analyses based program optimizations as compositional type systems with a transformation component. Analysis results are presented in terms of types ascribed to expressions and statements, certifiable by type derivations, and the transformation component carries out the optimizations that the type derivations license. We describe dead code elimin...
متن کاملTransforming certificates of program correctness along justified program transformations
A certificate is a mathematical object that can be used to establish that a piece of mobile code satisfies some security policy. Since in general certificates cannot be generated automatically, there is an interest in developing methods to reuse certificates. This article studies methods that transform certificates of a program into certificates of another program derived from the initial one b...
متن کاملTransformation Management in the Program of development and Innovation in Medical Science Education: A Survey of Experts' Viewpoints
Background and Purpose:The program of development and innovation in medical education with realistic understanding of the current situation of health education, has developed clever strategies for development of health education system. This research has been done to investigate the management status of this program. Method:Thiscross-sectional study was descriptive-analytic.The population were ...
متن کاملSimulation of Ideal External and Internal Flows with Arbitrary Boundaries Using Schwarz Christoffel Transformation
The flow field, velocity and pressure coefficient distribution of some 2-D ideal flows are presented. Conformal mapping is used to simulate two-dimensional ideal flow for a variety of complex internal and external configurations, based on the numerical integration of Schwarz-Christoffel transformation. The advantages of this method are simplicity and high accuracy. The method presented in this ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2002